package com.bean;

import java.io.Serializable;
import java.util.Date;

public class Wx_follow_log implements Serializable {
    private Integer id;

    private Integer channelseq;

    private Date followtime;

    private Integer isattention;

    private String openid;

    private Date unfollowtime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getChannelseq() {
        return channelseq;
    }

    public void setChannelseq(Integer channelseq) {
        this.channelseq = channelseq;
    }

    public Date getFollowtime() {
        return followtime;
    }

    public void setFollowtime(Date followtime) {
        this.followtime = followtime;
    }

    public Integer getIsattention() {
        return isattention;
    }

    public void setIsattention(Integer isattention) {
        this.isattention = isattention;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid == null ? null : openid.trim();
    }

    public Date getUnfollowtime() {
        return unfollowtime;
    }

    public void setUnfollowtime(Date unfollowtime) {
        this.unfollowtime = unfollowtime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Wx_follow_log other = (Wx_follow_log) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getChannelseq() == null ? other.getChannelseq() == null : this.getChannelseq().equals(other.getChannelseq()))
            && (this.getFollowtime() == null ? other.getFollowtime() == null : this.getFollowtime().equals(other.getFollowtime()))
            && (this.getIsattention() == null ? other.getIsattention() == null : this.getIsattention().equals(other.getIsattention()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
            && (this.getUnfollowtime() == null ? other.getUnfollowtime() == null : this.getUnfollowtime().equals(other.getUnfollowtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getChannelseq() == null) ? 0 : getChannelseq().hashCode());
        result = prime * result + ((getFollowtime() == null) ? 0 : getFollowtime().hashCode());
        result = prime * result + ((getIsattention() == null) ? 0 : getIsattention().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        result = prime * result + ((getUnfollowtime() == null) ? 0 : getUnfollowtime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", channelseq=").append(channelseq);
        sb.append(", followtime=").append(followtime);
        sb.append(", isattention=").append(isattention);
        sb.append(", openid=").append(openid);
        sb.append(", unfollowtime=").append(unfollowtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}